<form class="form-horizontal margin-top-10 col-sm-offset-1 col-sm-10" action="{$url}" method="post" kyo-ajax role="form">
    <div class="input-group margin-bottom-10">
        所属类型: {$parent}
    </div>
    <div class="input-group margin-bottom-10">
      <span class="input-group-addon">
          <span class="glyphicon glyphicon-user"></span>
      </span>
        <input type="text" class="form-control" name="tag" placeholder="类型标识" value="{$row.tag|default=""}" required>
    </div>
    <div class="input-group margin-bottom-10">
      <span class="input-group-addon">
          <span class="glyphicon glyphicon-user"></span>
      </span>
        <input type="text" class="form-control" name="name" placeholder="类型名称" value="{$row.name|default=""}" required>
    </div>
    <div class="form-group col-sm-offset-2 col-sm-10">
    <input type="hidden" name="update_id" value="{$row.id|default=""}">
    <button type="submit" class="btn btn-default btn-primary">{$optxt}类型</button>
    </div>
</form>
